<?php $this->load->view('inc/header.php');?>
<?php $this->load->view('block/inc_sm.php');?>

<div class="col-right">

	<div class="box">
		<div class="box-t">
			<span class="fl">添加区块</span>	
			<span class="fr">
			</span>
		</div>
		<div class="box-c" id="cat-tree">
		<form id="frm-block" action="<?php echo site_url('c=block&m=save_do');?>" vdt="true">
			<input type="hidden" name="id" value="<?php echo fd('r.id');?>"/>
			<table class="tbl-info">
				<tr>
					<th width="100">名称：</th>
					<td><input name="name" class="validate[required]" value="<?php echo fd('r.name');?>"/></td>
				</tr>
				<tr>
					<th>内容：</th>
					<td>
						<?php html_html('cont',fd('r.cont'));?>
					</td>
				</tr>
			</table>
		</form>
<div class="action">
	<input type="button" value="保存"  class="btn-ajax-submit" frmid="frm-block"/>
</div>

		</div>
	</div>

</div>

<?php $this->load->view('inc/footer.php');?>

<script type="text/javascript">$(function(){
	$('#slt-model').change(function(){
		var mid = $(this).val();
		var url = '<?php echo site_url("c=model&m=set_mid&mid=");?>'+mid;
		$.ajax({
			type: 'get',
			url: url,
			async: false,
			dataType:'json',
			success:function(msg){
	    		ajax_back(msg);
			}
		});		
	});
});</script>
